import request from '@/utils/request'

// 查询实时业务实际订单列表
export function listDeviceOrder(query) {
  return request({
    url: '/consumer/deviceOrder/list',
    method: 'get',
    params: query
  })
}

// 查询实时业务实际订单详细
export function getDeviceOrder(deviceOrderId) {
  return request({
    url: '/consumer/deviceOrder/' + deviceOrderId,
    method: 'get'
  })
}

// 新增实时业务实际订单
export function addDeviceOrder(data) {
  return request({
    url: '/consumer/deviceOrder',
    method: 'post',
    data: data
  })
}

// 修改实时业务实际订单
export function updateDeviceOrder(data) {
  return request({
    url: '/consumer/deviceOrder',
    method: 'put',
    data: data
  })
}

// 删除实时业务实际订单
export function delDeviceOrder(deviceOrderId) {
  return request({
    url: '/consumer/deviceOrder/' + deviceOrderId,
    method: 'delete'
  })
}
